//下半部分铅笔
import Pencil from './Pencil.js'
import Sprite from '../base/Sprite.js'
import DataStore from '../base/DataStore.js'

export default class extends Pencil {
  constructor(top) {
    const img = Sprite.getImage('pencilDown')
    super(img, top)
    this.grap = DataStore.getInstance().canvas.height / 5
  }
  draw() {
    this.y = this.top + this.grap
    super.draw()
  }
}
